# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'WeatherBar' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!
  
  # Pods for WeatherBar
  
  pod 'ReactiveCocoa','2.5'
  pod 'AFNetworking'
  pod 'Masonry', '~> 1.1.0'
  pod 'MJExtension', '~> 3.0.15.1'
  pod 'BGFMDB', '~> 2.0.13'
#  pod 'Valet', '~> 2.2.3'
  pod 'Reachability', '~> 3.2'
  
  
  #  统计和推送
  pod 'Firebase','~> 8.1.1'
  pod 'Firebase/Analytics'
  pod 'Firebase/InAppMessaging'
  pod 'Firebase/Messaging'
  #  营销统计
  pod 'AppsFlyerFramework','~> 6.4.2'
  #  facebook分享
#  pod 'FBSDKShareKit','~> 12.0.0'
  #  js 和 oc调用
  pod 'WebViewJavascriptBridge', '~> 6.0.3'
  #删除WebViewJavascriptBridge中的WebViewJavascriptBridge.h和WebViewJavascriptBridge.m文件
  pre_install do |installer|
    dir_web = File.join(installer.sandbox.pod_dir('WebViewJavascriptBridge'), 'WebViewJavascriptBridge')
    Dir.foreach(dir_web) {|x|
      real_path = File.join(dir_web, x)
      if (!File.directory?(real_path) && File.exist?(real_path))
        if(x == 'WebViewJavascriptBridge.h' || x == 'WebViewJavascriptBridge.m')
          File.delete(real_path)
        end
      end
    }
  end
  
end
